<meta charset="utf-8" />
<button id="loginbtn" onclick="toqq()">qq登录</button>

123
<script>

window.onload = function(){
  var url = document.URL;
  var start = url.indexOf("=");
  if(start==-1) return;
  var picsrc = url.substring(start+1);
  if(picsrc){
    loginbtn.style.display = "none";
    var img = document.createElement("img");
    img.src = picsrc;
    document.body.appendChild(img);
  }
};
function toqq(){
  location = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101960277&response_type=token&scope=all&redirect_uri=https://jeecgboot.aliyunhg.com/jeecg-boot/client/qq/pcCallback&state=g1";
  /*var req = new XMLHttpRequest();
  req.open("get",qqurl);
  req.send();
  req.onreadystatechange = function(){
    if(req.readyState==4&&req.status==200){
      console.log(req.responseText);
    }
  }*/
}

</script>
